package com.cube.dp.cor.common;

import com.cube.dp.base.error.ApiResultCode;

/**
 * @author cube.li
 * @date 2021/12/23 14:10
 */
public enum TransformErrorCode implements ApiResultCode {
    INVALID_ST(1001, "非法短链"),
    REDIRECT_ERROR(1002, "重定向失败");

    private final Integer code;

    private final String msg;


    TransformErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
